import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loadMapJs:'gc', // 加载的地图js文件
    radomRate:1, // 页面比例, 默认1
  },
  mutations: {
    setRadomRage: (state, radomRate) => {
      state.radomRate = radomRate;
    },
    setMapId(state,loadMapJs){
      state.loadMapJs = loadMapJs;
    },
  },
  actions: {
  },
  getters:{
    getMapId:state => state.getMapId,
    radomRate: state => state.radomRate
  },
  modules: {
  }
})
